package com.feituan.core.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feituan.core.pojo.entity.User;
import org.mapstruct.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaohu
 * @since 2024-05-09
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户id查询用户集星
     * @param userId userId
     */
    int selectStarsByUserId(Long userId);

    /**
     * 修改用户领取新用户礼包状态
     * @param userId userId
     */
    int updateNewUserActivity(Long userId);


    /**
     * 查询用户是否领取新用户礼包
     * @param userId userId
     */
    int selectNewUserActivity(Long userId);
}
